package pojo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * Good entity. @author MyEclipse Persistence Tools
 */

public class Good implements java.io.Serializable {

	// Fields

	private Integer id;
	private User user;
	private Address address;
	private Catalog catalog;
	private String description;
	private Integer tel;
	private Integer qq;
	private String contactor;
	private Date date;
	private String title;
	private Double price;
	private Integer clicktimes;
	private Integer status;
	private String publisher;
	private Short type;
	private Set collects = new HashSet(0);
	private Set photos = new HashSet(0);
	private Set messages = new HashSet(0);

	// Constructors

	/** default constructor */
	public Good() {
	}

	/** minimal constructor */
	public Good(User user, String description) {
		this.user = user;
		this.description = description;
	}

	/** full constructor */
	public Good(User user, Address address, Catalog catalog,
			String description, Integer tel, Integer qq, String contactor,
			Date date, String title, Double price, Integer clicktimes,
			Integer status, String publisher, Short type, Set collects,
			Set photos, Set messages) {
		this.user = user;
		this.address = address;
		this.catalog = catalog;
		this.description = description;
		this.tel = tel;
		this.qq = qq;
		this.contactor = contactor;
		this.date = date;
		this.title = title;
		this.price = price;
		this.clicktimes = clicktimes;
		this.status = status;
		this.publisher = publisher;
		this.type = type;
		this.collects = collects;
		this.photos = photos;
		this.messages = messages;
	}

	// Property accessors

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public Address getAddress() {
		return this.address;
	}

	public void setAddress(Address address) {
		this.address = address;
	}

	public Catalog getCatalog() {
		return this.catalog;
	}

	public void setCatalog(Catalog catalog) {
		this.catalog = catalog;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public Integer getTel() {
		return this.tel;
	}

	public void setTel(Integer tel) {
		this.tel = tel;
	}

	public Integer getQq() {
		return this.qq;
	}

	public void setQq(Integer qq) {
		this.qq = qq;
	}

	public String getContactor() {
		return this.contactor;
	}

	public void setContactor(String contactor) {
		this.contactor = contactor;
	}

	public Date getDate() {
		return this.date;
	}

	public void setDate(Date date) {
		this.date = date;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Double getPrice() {
		return this.price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	public Integer getClicktimes() {
		return this.clicktimes;
	}

	public void setClicktimes(Integer clicktimes) {
		this.clicktimes = clicktimes;
	}

	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getPublisher() {
		return this.publisher;
	}

	public void setPublisher(String publisher) {
		this.publisher = publisher;
	}

	public Short getType() {
		return this.type;
	}

	public void setType(Short type) {
		this.type = type;
	}

	public Set getCollects() {
		return this.collects;
	}

	public void setCollects(Set collects) {
		this.collects = collects;
	}

	public Set getPhotos() {
		return this.photos;
	}

	public void setPhotos(Set photos) {
		this.photos = photos;
	}

	public Set getMessages() {
		return this.messages;
	}

	public void setMessages(Set messages) {
		this.messages = messages;
	}

}